<?php defined('In33hao') or exit('Access Invalid!');?>
<link rel="stylesheet" type="text/css" href="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"  />
<div class="tabmenu">
    <ul class="tab pngFix">
        <li class="active">
            <a href="###">提现详情</a>
        </li>
    </ul>
</div>
<div class="ncsc-form-default">
    <form id="weixin_form" action="<?php if($output['info']['class']==1) { echo urlShop('cash_store', 'save_edit'); }; if($output['info']['class']==2) { echo urlShop('cash_promotion', 'save_edit');}  if($output['info']['class']==3) { echo urlShop('cash_agent', 'save_edit');} if($output['info']['class']==5) { echo urlShop('cash_sq', 'save_edit');}?>" method="post">
        <input type="hidden" name="pdc_id" value="<?php echo $output['info']['id'];?>">
        <input type="hidden" name="pdc_amount" value="<?php echo $output['info']['cash'];?>">
        <input type="hidden" name="pdc_member_id" value="<?php echo $output['info']['member_id'];?>">
        <input type="hidden" name="class" value="<?php echo $output['info']['class'];?>">
    <dl>
      <dt>提现单号：</dt>
      <dd>
          <?php echo  $output['info']['order_sn'];?>
          <span></span>
      </dd>
    </dl>
    <dl>
      <dt>会员名称：</dt>
      <dd>
          <?php echo  $output['info']['member_name'];?>
          <span></span>
      </dd>
    </dl>
    <dl>
      <dt>提现人：</dt>
      <dd>
          <?php echo  $output['info']['name'];?>
          <span></span>
      </dd>
    </dl>
        <dl>
      <dt>银行卡号：</dt>
      <dd>
          <?php echo  $output['info']['withdrawals_card'];?>
          <span></span>
      </dd>
    </dl>
     <dl>
      <dt>提现金额：</dt>
      <dd>
          <font color="red"><b><?php echo  $output['info']['cash'];?></b></font> 元
          <span></span>
      </dd>
    </dl>
    <dl>
      <dt>提现时间：</dt>
      <dd>
          <?php echo date('Y-m-d H:i:s',$output['info']['time']);?>
          <span></span>
      </dd>
    </dl>
        <dl>
            <dt><i class="required">*</i>提现状态：</dt>
            <dd>
                <?php   if($output['info']['state'] == 0){;?>
                    &nbsp;&nbsp;&nbsp;<input type="radio" name="status" <?php   if($output['info']['pdc_payment_state'] == 1)echo 'checked';?> value="1"/>&nbsp;&nbsp;支付成功
                                                                                                                                                          &nbsp;&nbsp;&nbsp;<input type="radio" name="status" <?php   if($output['info']['pdc_payment_state'] == 2)echo 'checked';?> value="2"/>&nbsp;&nbsp;支付失败
                <?php }else if($output['info']['pdc_payment_state'] == 1){echo '<font color="green"><b>支付成功</b></font>';}else{echo '<font color="red"><b>支付失败</b></font>';} ?>
            </dd>
        </dl>
    <dl>
      <dt>备注信息：</dt>
      <dd>
          <textarea name="remark" cols="100" rows="30" <?php   if($output['info']['state'] != 0)echo 'readonly';?> style="text-align: left;"><?php echo  empty($output['info']['remark']) ? '' : $output['info']['remark'];?></textarea>
          <span></span>
      </dd>
    </dl>
    <div class="bottom">
        <?php   if($output['info']['state'] == 0){;?>
      <label class="submit-border"><input id="submit_button" type="submit" class="submit" value="<?php echo $lang['nc_submit'];?>"></label>
        <?php } ?>
    </div>
  </form>
</div>
<script src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/i18n/zh-CN.js"></script>
<script src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.css"  />
<script>
   $(document).ready(function(){
    <?php if(empty($output['xianshi_info'])) { ?>
    $('#start_time').datetimepicker({
        controlType: 'select'
    });

    $('#end_time').datetimepicker({
        controlType: 'select'
    });
    <?php } ?>

    jQuery.validator.methods.greaterThanDate = function(value, element, param) {
        var date1 = new Date(Date.parse(param.replace(/-/g, "/")));
        var date2 = new Date(Date.parse(value.replace(/-/g, "/")));
        return date1 < date2;
    };
    jQuery.validator.methods.lessThanDate = function(value, element, param) {
        var date1 = new Date(Date.parse(param.replace(/-/g, "/")));
        var date2 = new Date(Date.parse(value.replace(/-/g, "/")));
        return date1 > date2;
    };
    jQuery.validator.methods.greaterThanStartDate = function(value, element) {
        var start_date = $("#start_time").val();
        var date1 = new Date(Date.parse(start_date.replace(/-/g, "/")));
        var date2 = new Date(Date.parse(value.replace(/-/g, "/")));
        return date1 < date2;
    };

    //页面输入内容验证
    $("#weixin_form").validate({
        errorPlacement: function(error, element){
            var error_td = element.parent('dd').children('span');
            error_td.append(error);
        },
        onfocusout: false,
    	submitHandler:function(form){
    		ajaxpost('weixin_form', '', '', 'onerror');
    	},
        rules : {
           
        },
        messages : {
            status : {
                required : '<i class="icon-exclamation-sign"></i>请选择提现状态'
            }
             
        }
    });
});
</script>
